package com.arpa.wms.cancel.delivery;

import com.arpa.wms.cancel.DeliveryCancelHandlerTypeConstants;
import com.arpa.wms.domain.entity.Delivery;
import com.arpa.wms.service.*;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * 部分已分配订单取消处理
 * 1、更新订单状态作废；
 * 2、分配库存退回原库位；
 *
 * @author leo
 */
@Log4j2
@Component(DeliveryCancelHandlerTypeConstants.PART_DISTRIBUTION)
public class PartDistributionCancelHandler extends DistributionedCancelHandler {

    /**
     * 已分配订单取消处理
     * 作废；已分配库存退回原库位；
     * @author liuxr
     * @date 2021/6/10 8:58
     * @param deliveryService
     * @param delivery
     * @return boolean
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean handle(IDeliveryService deliveryService, Delivery delivery) {
        return super.handle(deliveryService,delivery);
    }








}
